package com.op.parcel.manage.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.op.parcel.boot.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 实体类
 *
 * @author xuan
 * @since 2019-01-07
 */
@Data
@TableName("sys_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "User对象", description = "User对象")
public class User extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private String address;

	private String avatar;

	private String description;

	private String email;

	private String mobile;

	private String nickName;

	@NotBlank(message = "密码不能为空" ,groups = update.class)
	@Min(value = 6,message = "密码长度必须大于6位" ,groups = update.class)
	private String password;

	private Integer sex;

	private Integer status;

	private Integer type;

	private String username;

	private String departmentId;

	private String street;

	private String passStrength;

public interface  update{

}
}
